home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 52 / Amiga Format AFCD52 (Issue 136, May 2000).iso / -serious- / programming / other / dopus412-gpl / program / icondata.c < prev    next >
C/C++ Source or Header  |  2000-02-28  |  11KB  |  230 lines

  1. /*
  2.  
  3. Directory Opus 4
  4. Original GPL release version 4.12
  5. Copyright 1993-2000 Jonathan Potter
  6.  
  7. This program is free software; you can redistribute it and/or
  8. modify it under the terms of the GNU General Public License
  9. as published by the Free Software Foundation; either version 2
  10. of the License, or (at your option) any later version.
  11.  
  12. This program is distributed in the hope that it will be useful,
  13. but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15. GNU General Public License for more details.
  16.  
  17. You should have received a copy of the GNU General Public License
  18. along with this program; if not, write to the Free Software
  19. Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  20.  
  21. All users of Directory Opus 4 (including versions distributed
  22. under the GPL) are entitled to upgrade to the latest version of
  23. Directory Opus version 5 at a reduced price. Please see
  24. http://www.gpsoft.com.au for more information.
  25.  
  26. The release of Directory Opus 4 under the GPL in NO WAY affects
  27. the existing commercial status of Directory Opus 5.
  28.  
  29. */
  30.  
  31. #include "DOpus.h"
  32.  
  33. USHORT
  34.     projecticon_data[]={
  35.         0xffff,0xffff,0xfff8,0x0000,0xd555,0x5555,0x5556,0x0000,
  36.         0xd555,0x5555,0x5555,0x8000,0xdfff,0xffff,0x5555,0x6000,
  37.         0xd000,0x0001,0x5555,0x5000,0xd000,0xc001,0x5555,0x5000,
  38.         0xd001,0xe001,0x5555,0x5000,0xd003,0x3001,0x5555,0x5000,
  39.         0xd006,0x1801,0x7fff,0x5000,0xd00c,0x0c01,0x7fff,0x5000,
  40.         0xd018,0x0601,0x7fff,0x5000,0xd03f,0xff01,0x000f,0x5000,
  41.         0xd000,0x0001,0x7fff,0x5000,0xd000,0x0001,0x01ff,0x5000,
  42.         0xdfff,0xffff,0x7fff,0x5000,0xd555,0x55e0,0x0003,0x5000,
  43.         0xd555,0x55ff,0xffff,0x5000,0xd555,0x55e0,0x003f,0x5000,
  44.         0x3555,0x55ff,0xffff,0x5000,0x0d55,0x55ff,0xffff,0x5000,
  45.         0x0355,0x5555,0x5555,0x5000,0x0000,0x0000,0x0000,0x0000,
  46.         0x0000,0x0000,0x0004,0x0000,0x0000,0x0000,0x0001,0x0000,
  47.         0x0000,0x0000,0x0000,0x4000,0x0000,0x0000,0x0000,0x1000,
  48.         0x0000,0x0000,0x0000,0x0800,0x0000,0xe000,0x0000,0x0c00,
  49.         0x0001,0xf000,0x0000,0x0c00,0x0003,0xb800,0x0000,0x0c00,
  50.         0x0007,0x1c00,0x0000,0x0c00,0x000e,0x0e00,0x0000,0x0c00,
  51.         0x001c,0x0700,0x0000,0x0c00,0x003f,0xff80,0x7ff0,0x0c00,
  52.         0x001f,0xff80,0x0000,0x0c00,0x0000,0x0000,0x7e00,0x0c00,
  53.         0x0000,0x0000,0x0000,0x0c00,0x0000,0x001f,0xfffc,0x0c00,
  54.         0x0000,0x0000,0x0000,0x0c00,0x0000,0x001f,0xffc0,0x0c00,
  55.         0x4000,0x0000,0x0000,0x0c00,0x1000,0x0000,0x0000,0x0c00,
  56.         0x0400,0x0000,0x0000,0x0c00,0x01ff,0xffff,0xffff,0xfc00},
  57.  
  58.     toolicon_data[]={
  59.         0xffff,0xffff,0xffff,0xf800,0xd555,0x5555,0x5555,0x5000,
  60.         0xd555,0x5555,0x5555,0x5000,0xd555,0x5555,0x5555,0x5000,
  61.         0xd555,0x5555,0x5555,0x5000,0xd555,0x5555,0x5555,0x5000,
  62.         0xd405,0x5000,0x1555,0x5000,0xd405,0x4000,0x0155,0x5000,
  63.         0xd400,0x0000,0x0055,0x5000,0xd400,0x0000,0x0015,0x5000,
  64.         0xd400,0x0000,0x0005,0x5000,0xd400,0x0000,0x0005,0x5000,
  65.         0xd400,0x0000,0x0001,0x5000,0xd405,0x4000,0x1541,0x5000,
  66.         0xd405,0x4000,0x1550,0x5000,0xd555,0x5000,0x5554,0x5000,
  67.         0xd555,0x5401,0x5555,0x5000,0xd555,0x5401,0x5555,0x5000,
  68.         0xd555,0x5401,0x5555,0x5000,0xd555,0x5401,0x5555,0x5000,
  69.         0xd555,0x5555,0x5555,0x5000,0x8000,0x0000,0x0000,0x0000,
  70.         0x0000,0x0000,0x0000,0x0400,0x0000,0x0000,0x0000,0x0c00,
  71.         0x0000,0x0000,0x0000,0x0c00,0x0000,0x0000,0x0000,0x0c00,
  72.         0x0000,0x0000,0x0000,0x0c00,0x0000,0x0000,0x0000,0x0c00,
  73.         0x03f0,0x0fff,0xe000,0x0c00,0x0208,0x3000,0x1c00,0x0c00,
  74.         0x0207,0xc000,0x0380,0x0c00,0x0200,0x0000,0x0060,0x0c00,
  75.         0x0200,0x0000,0x0010,0x0c00,0x0200,0x0000,0x0008,0x0c00,
  76.         0x0207,0xc000,0x1fc4,0x0c00,0x0208,0x2000,0x2032,0x0c00,
  77.         0x03f0,0x1800,0xc00d,0x0c00,0x0000,0x0603,0x0003,0x0c00,
  78.         0x0000,0x0202,0x0000,0x0c00,0x0000,0x0202,0x0000,0x0c00,
  79.         0x0000,0x0202,0x0000,0x0c00,0x0000,0x03fe,0x0000,0x0c00,
  80.         0x0000,0x0000,0x0000,0x0c00,0x7fff,0xffff,0xffff,0xfc00},
  81.  
  82.     drawericon_1_data[]={
  83.         0x3fff,0xffff,0xffff,0xf800,0x3000,0x0000,0x0000,0x1800,
  84.         0x33ff,0xffff,0xffff,0xf800,0x37ff,0xffff,0xffff,0xd800,
  85.         0x37ff,0xf600,0xdfff,0xd800,0x37ff,0xf62a,0xdfff,0xd800,
  86.         0x37ff,0xf7ff,0xdfff,0xd800,0x37ff,0xf800,0x3fff,0xd800,
  87.         0x37ff,0xffff,0xffff,0xd800,0x3600,0x0000,0x0000,0x1800,
  88.         0x3fff,0xffff,0xffff,0xf800,0x0000,0x0000,0x0000,0x0000,
  89.         0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  90.         0x0000,0x0000,0x0000,0x0000,0x0fff,0xffff,0xffff,0xe400,
  91.         0x0c00,0x0000,0x0000,0x0400,0x0800,0x0000,0x0000,0x2400,
  92.         0x0800,0x09ff,0x2000,0x2400,0x0800,0x09d5,0x2000,0x2400,
  93.         0x0800,0x0800,0x2000,0x2400,0x0800,0x07ff,0xc000,0x2400,
  94.         0x0800,0x0000,0x0000,0x2400,0x09ff,0xffff,0xffff,0xe400,
  95.         0x0000,0x0000,0x0000,0x0400,0x0fff,0xffff,0xffff,0xfc00,
  96.         0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},
  97.  
  98.     drawericon_2_data[]={
  99.         0x3fff,0xffff,0xffff,0xf800,0x3000,0x0000,0x0000,0x1800,
  100.         0x22aa,0xaaaa,0xaaaa,0xa800,0x0555,0x5555,0x5555,0x5000,
  101.         0x0000,0x0000,0x0000,0x0000,0x3fff,0xffff,0xffff,0xf800,
  102.         0x3fff,0xffff,0xffff,0xf800,0x3fff,0xf600,0xdfff,0xf800,
  103.         0x3fff,0xf62a,0xdfff,0xf800,0x3fff,0xf7ff,0xdfff,0xf800,
  104.         0x3fff,0xf800,0x3fff,0xf800,0x3fff,0xffff,0xffff,0xf800,
  105.         0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  106.         0x0000,0x0000,0x0000,0x0000,0x0fff,0xffff,0xffff,0xe400,
  107.         0x1aaa,0xaaaa,0xaaaa,0xb400,0x3555,0x5555,0x5555,0x5c00,
  108.         0x7fff,0xffff,0xffff,0xfc00,0x4000,0x0000,0x0000,0x0400,
  109.         0x4000,0x0000,0x0000,0x0600,0x4000,0x09ff,0x2000,0x0600,
  110.         0x4000,0x09d5,0x2000,0x0680,0x4000,0x0800,0x2000,0x0680,
  111.         0x4000,0x07ff,0xc000,0x0680,0x4000,0x0000,0x0000,0x0680,
  112.         0x7fff,0xffff,0xffff,0xfe80,0x02aa,0xaaaa,0xaaaa,0xaa80},
  113.  
  114.     trashcanicon_1_data[]={
  115.         0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  116.         0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  117.         0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  118.         0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  119.         0x03ff,0xfff5,0x5500,0x0000,0x07ff,0xffff,0xaa80,0x0000,
  120.         0x0000,0x0000,0x0000,0x0000,0x03ff,0xff55,0x5400,0x0000,
  121.         0x03ff,0xffff,0xaa80,0x0000,0x038f,0xfc7d,0x4200,0x0000,
  122.         0x0317,0xf8be,0x8880,0x0000,0x0337,0xf9bf,0x9100,0x0000,
  123.         0x0313,0xf9bf,0x1000,0x0000,0x019b,0xf9be,0x9100,0x0000,
  124.         0x019b,0xf93f,0x1200,0x0000,0x019b,0xf9be,0x9100,0x0000,
  125.         0x019b,0xf93f,0x2200,0x0000,0x019b,0xf9be,0x2500,0x0000,
  126.         0x0189,0xf93f,0x2200,0x0000,0x01cd,0xf9be,0x2400,0x0000,
  127.         0x00c9,0xf93d,0x2a00,0x0000,0x00cd,0xf9be,0x4400,0x0000,
  128.         0x00c7,0xf9fe,0x4a00,0x0000,0x00e3,0xfe75,0x1400,0x0000,
  129.         0x007f,0xffea,0xa800,0x0000,0x0000,0x0000,0x0000,0x0000,
  130.         0x0000,0x0000,0x0000,0x0000,
  131.         0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  132.         0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  133.         0x0000,0x0000,0x0000,0x0000,0x0000,0x3fe0,0x0000,0x0000,
  134.         0x0000,0xe038,0x0000,0x0000,0x07ff,0xffff,0xffc0,0x0000,
  135.         0x0fff,0xffff,0xffe0,0x0000,0x1fff,0xffff,0xfff0,0x0000,
  136.         0x1fff,0xffff,0xfff0,0x0000,0x0fff,0xffff,0xffe0,0x0000,
  137.         0x0fff,0xffff,0xffe0,0x0000,0x0fff,0xffff,0xffe0,0x0000,
  138.         0x0fff,0xffff,0xffe0,0x0000,0x0fff,0xffff,0xffe0,0x0000,
  139.         0x0fff,0xffff,0xffe0,0x0000,0x07ff,0xffff,0xffe0,0x0000,
  140.         0x07ff,0xffff,0xffc0,0x0000,0x07ff,0xffff,0xffc0,0x0000,
  141.         0x07ff,0xffff,0xffc0,0x0000,0x07ff,0xffff,0xffc0,0x0000,
  142.         0x07ff,0xffff,0xffc0,0x0000,0x07ff,0xffff,0xffc0,0x0000,
  143.         0x03ff,0xffff,0xff80,0x0000,0x03ff,0xffff,0xff80,0x0000,
  144.         0x03ff,0xffff,0xff80,0x0000,0x03ff,0xffff,0xfff8,0x0000,
  145.         0x03ff,0xffff,0xffff,0xe000,0x01ff,0xffff,0xffff,0xe000,
  146.         0x000f,0xffff,0xfffc,0x0000},
  147.  
  148.     trashcanicon_2_data[]={
  149.         0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  150.         0x0003,0xffff,0x8000,0x0000,0x00fc,0x0000,0x7e00,0x0000,
  151.         0x0702,0xaaaa,0x81c0,0x0000,0x0855,0x6ab5,0x5420,0x0000,
  152.         0x02aa,0xaaaa,0xabc0,0x0000,0x00fd,0x5555,0x7e00,0x0000,
  153.         0x0003,0xffff,0x8000,0x0000,0x0000,0x0000,0x0000,0x0000,
  154.         0x0000,0x0000,0x0000,0x0000,0x03ff,0xff55,0x5400,0x0000,
  155.         0x03ff,0xffff,0xaa80,0x0000,0x038f,0xfc7d,0x4200,0x0000,
  156.         0x0317,0xf8be,0x8880,0x0000,0x0337,0xf9bf,0x9100,0x0000,
  157.         0x0313,0xf9bf,0x1000,0x0000,0x019b,0xf9be,0x9100,0x0000,
  158.         0x019b,0xf93f,0x1200,0x0000,0x019b,0xf9be,0x9100,0x0000,
  159.         0x019b,0xf93f,0x2200,0x0000,0x019b,0xf9be,0x2500,0x0000,
  160.         0x0189,0xf93f,0x2200,0x0000,0x01cd,0xf9be,0x2400,0x0000,
  161.         0x00c9,0xf93d,0x2a00,0x0000,0x00cd,0xf9be,0x4400,0x0000,
  162.         0x00c7,0xf9fe,0x4a00,0x0000,0x00e3,0xfe75,0x1400,0x0000,
  163.         0x007f,0xffea,0xa800,0x0000,0x0000,0x0000,0x0000,0x0000,
  164.         0x0000,0x0000,0x0000,0x0000,
  165.         0x0000,0x0000,0x0000,0x0000,0x0003,0xffff,0x8000,0x0000,
  166.         0x00ff,0xffff,0xfe00,0x0000,0x07ff,0xffff,0xffc0,0x0000,
  167.         0x0fff,0xffff,0xffe0,0x0000,0x1fff,0xffff,0xfff0,0x0000,
  168.         0x1fff,0xffff,0xfff0,0x0000,0x0fff,0xffff,0xffe0,0x0000,
  169.         0x00ff,0xffff,0xfe00,0x0000,0x0003,0xffff,0x8000,0x0000,
  170.         0x1fff,0xffff,0xfff0,0x0000,0x0fff,0xffff,0xffe0,0x0000,
  171.         0x0fff,0xffff,0xffe0,0x0000,0x0fff,0xffff,0xffe0,0x0000,
  172.         0x0fff,0xffff,0xffe0,0x0000,0x0fff,0xffff,0xffe0,0x0000,
  173.         0x0fff,0xffff,0xffe0,0x0000,0x07ff,0xffff,0xffe0,0x0000,
  174.         0x07ff,0xffff,0xffc0,0x0000,0x07ff,0xffff,0xffc0,0x0000,
  175.         0x07ff,0xffff,0xffc0,0x0000,0x07ff,0xffff,0xffc0,0x0000,
  176.         0x07ff,0xffff,0xffc0,0x0000,0x07ff,0xffff,0xffc0,0x0000,
  177.         0x03ff,0xffff,0xff80,0x0000,0x03ff,0xffff,0xff80,0x0000,
  178.         0x03ff,0xffff,0xff80,0x0000,0x03ff,0xffff,0xfff8,0x0000,
  179.         0x03ff,0xffff,0xffff,0xe000,0x01ff,0xffff,0xffff,0xe000,
  180.         0x000f,0xffff,0xfffc,0x0000};
  181.  
  182. struct Image
  183.     projecticon_image={
  184.         0,0,54,22,2,projecticon_data,3,0,NULL},
  185.     toolicon_image={
  186.         0,0,54,22,2,toolicon_data,3,0,NULL},
  187.     drawericon_1_image={
  188.         0,0,57,14,2,drawericon_1_data,3,0,NULL},
  189.     drawericon_2_image={
  190.         0,0,57,14,2,drawericon_2_data,3,0,NULL},
  191.     trashcanicon_1_image={
  192.         0,0,51,31,2,trashcanicon_1_data,3,0,NULL},
  193.     trashcanicon_2_image={
  194.         0,0,51,31,2,trashcanicon_2_data,3,0,NULL};
  195.  
  196. struct DrawerData
  197.     drawericon_drawer={
  198.         {50,50,400,100,1,0,0,0x240027f,
  199.             NULL,NULL,NULL,NULL,NULL,90,40,0xffff,0xffff,WBENCHSCREEN},
  200.         0,0,0,0},
  201.     trashcanicon_drawer={
  202.         {50,50,400,100,1,0,0,0x240027f,
  203.             NULL,NULL,NULL,NULL,NULL,90,40,0xffff,0xffff,WBENCHSCREEN},
  204.         0,0,0,0};
  205.  
  206. struct DiskObject
  207.     projecticon_icon={
  208.         WB_DISKMAGIC,WB_DISKVERSION,
  209.         {NULL,0,0,54,23,GFLG_GADGIMAGE|GADGBACKFILL,GACT_RELVERIFY,GTYP_BOOLGADGET,
  210.             (APTR)&projecticon_image,NULL,NULL,0,NULL,0,NULL},
  211.         WBPROJECT,"",NULL,NO_ICON_POSITION,NO_ICON_POSITION,NULL,NULL,4096},
  212.     toolicon_icon={
  213.         WB_DISKMAGIC,WB_DISKVERSION,
  214.         {NULL,0,0,54,23,GFLG_GADGIMAGE|GADGBACKFILL,GACT_RELVERIFY,GTYP_BOOLGADGET,
  215.             (APTR)&toolicon_image,NULL,NULL,0,NULL,0,NULL},
  216.         WBTOOL,NULL,NULL,NO_ICON_POSITION,NO_ICON_POSITION,NULL,NULL,4096},
  217.     drawericon_icon={
  218.         WB_DISKMAGIC,WB_DISKVERSION,
  219.         {NULL,0,0,57,14,GFLG_GADGIMAGE|GFLG_GADGHIMAGE,GACT_RELVERIFY|GACT_IMMEDIATE,GTYP_BOOLGADGET,
  220.             (APTR)&drawericon_1_image,(APTR)&drawericon_2_image,NULL,0,NULL,0,NULL},
  221.         WBDRAWER,NULL,NULL,NO_ICON_POSITION,NO_ICON_POSITION,&drawericon_drawer,NULL,0},
  222.     trashcanicon_icon={
  223.         WB_DISKMAGIC,WB_DISKVERSION,
  224.         {NULL,0,0,51,31,GFLG_GADGIMAGE|GFLG_GADGHIMAGE,GACT_RELVERIFY|GACT_IMMEDIATE,GTYP_BOOLGADGET,
  225.             (APTR)&trashcanicon_1_image,(APTR)&trashcanicon_2_image,NULL,0,NULL,0,NULL},
  226.         WBGARBAGE,NULL,NULL,NO_ICON_POSITION,NO_ICON_POSITION,&trashcanicon_drawer,NULL,0},
  227.  
  228.     *icontable[4]={
  229.         &drawericon_icon,&toolicon_icon,&projecticon_icon,&trashcanicon_icon};
  230.